home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
util
/
cdity
/
ModeProSrc.lha
/
Install-Dev
/
OLD
/
Script2
< prev
next >
Wrap
Text File
|
1998-08-20
|
4KB
|
148 lines
;-------- BEGIN ----------
; Fix these strings
(set path_modepro_prompt (path_modepro_prompt path_commodities))
(set path_mpprefs_prompt (path_mpprefs_prompt path_prefs))
(set startup_method (askchoice (prompt startup_prompt)
(help startup_help)
(choices startup_choice0 startup_choice1 startup_choice2)
(default 2)
) )
(if (= startup_method 2)
(
( set path_delmodepro path_commodities)
( set path_modepro path_wbstartup)
)
(
( set path_delmodepro path_wbstartup)
( set path_modepro (askdir (prompt path_modepro_prompt)
(help path_modepro_help)
(default path_commodities)
) )
)
)
( set path_mpprefs (askdir (prompt path_mpprefs_prompt)
(help path_mpprefs_help)
(default path_prefs)
) )
( set ModeProPrefsCommand (tackon ( path_mpprefs)
( "ModeProPrefs")
)
)
( set tt_cxpopkey ( askstring (prompt tt_cxpopkey_prompt)
(help tt_cxhelp)
(default "lamiga p")
) )
( set tt_cxpri ("%ld" (asknumber (prompt tt_cxpri_prompt)
(help tt_cxhelp)
(default 5)
) ) )
( set tt_cxpopup (askchoice (prompt tt_cxpopup_prompt)
(help tt_cxhelp)
(default 0)
(choices No Yes)
) )
( set tt_wbpromote (askchoice (prompt tt_wbpromote_prompt)
(help tt_wbpromote_help)
(default 0)
(choices No Yes)
) )
( set tt_wbpromotable (select tt_wbpromote "(WBPROMOTABLE)" "WBPROMOTABLE") )
;**** COPY THE CATALOGS ****
(copyfiles (prompt copycat_prompt)
(help copycat_help)
(source "catalogs/")
(dest "locale:catalogs/")
(infos)
(confirm)
(all)
)
;**** DELETE THE ANY EXTRA COPY OF MODEPRO ****
(set oldmodepro_file ( tackon (path_delmodepro)
("ModePro")
) )
(if (exists oldmodepro_file)
(
(if (askchoice (prompt oldmodepro_prompt )
(help oldmodepro_help)
(default 1)
(choices No Yes)
)
(
(delete oldmodepro_file (prompt oldmodepro_deleting))
(delete (cat (oldmodepro_file) (".info") ) (prompt oldmodepro_deleting) )
)
)
)
)
;**** SET THE TOOLTYPES ****
(tooltype (dest ModePro)
(settooltype "CX_POPKEY" tt_cxpopkey)
(settooltype "CX_POPUP" (select tt_cxpopup No Yes) )
(settooltype "CX_PRIORITY" tt_cxpri )
(settooltype "PREFSCOMMAND" ModeProPrefsCommand)
(settooltype tt_wbpromotable "")
)
;**** COPY FILES ****
(copyfiles (prompt installing_modepro)
(help installing_modepro)
(source ModePro)
(infos)
(dest path_modepro)
)
(set @default-dest path_modepro)
(copyfiles (prompt installing_modeproprefs)
(help installing_modeproprefs)
(source ModeProPrefs)
(infos)
(dest path_mpprefs)
)
;**** PROMPT TO MODIFY THE U-S FILE ****
(if (= startup_method 1)
(
(startup "ModePro"
(prompt usmodify_prompt )
(help usmodify_help )
(command (cat "Run <>NIL: " (tackon path_modepro "ModePro")) )
)
)
(
(startup "ModePro"
(prompt usmodify_prompt )
(help usmodify_help )
(command ";Don't run ModePro from User-Startup")
)
)
)